/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Commons.WebServiceClient;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;

/**
 *
 * @author drag0nman
 */

@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(propOrder = {"idEntita", "timeStamp","numSeq"})
public class InfoEntita
    {
        private String idEntita;
        private String timeStamp;
        private int numSeq;

        public InfoEntita()
        {
            this.idEntita = "";
            this.timeStamp = "";
            this.numSeq=0;
        }

        public InfoEntita(String idEntita, String timeStamp, int numSeq) {
            this.idEntita = idEntita;
            this.timeStamp = timeStamp;
            this.numSeq=numSeq;
        }

        public void setIdEntita(String idEntita) {
            this.idEntita = idEntita;
        }

        public void setTimeStamp() {
            this.timeStamp = String.valueOf(System.currentTimeMillis());
        }

        public void incrementa()
        {
            this.numSeq++;
        }
  

     public void setNumSeq(int numSeq) {
        this.numSeq = numSeq;
      }

          public int getNumSeq() {
        return numSeq;
    }

        public String getIdEntita() {
            return idEntita;
        }

        public String getTimeStamp() {
            return timeStamp;
        }


    }